package com.example.backetballgame.team;

import com.example.backetballgame.player.Player;

import java.util.List;

public class Team {
    private String teamName;
    private String opponent;
    private int points;
    private int matchCount;
    private int winCount;
    private int loseCount;
    private int goldReward;
    private int fatigueCost;

    public Team(String teamName, String opponent, int points, int matchCount, int winCount, int loseCount) {
        this.teamName = teamName;
        this.opponent = opponent;
        this.points = points;
        this.matchCount = matchCount;
        this.winCount = winCount;
        this.loseCount = loseCount;
        this.goldReward = points * 10;
        this.fatigueCost = points / 10;
    }
    private List<Player> playerList;

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getOpponent() {
        return opponent;
    }

    public void setOpponent(String opponent) {
        this.opponent = opponent;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public int getMatchCount() {
        return matchCount;
    }

    public void setMatchCount(int matchCount) {
        this.matchCount = matchCount;
    }

    public int getWinCount() {
        return winCount;
    }

    public void setWinCount(int winCount) {
        this.winCount = winCount;
    }

    public int getLoseCount() {
        return loseCount;
    }

    public int getGoldReward() {
        return goldReward;
    }

    public void setGoldReward(int goldReward) {
        this.goldReward = goldReward;
    }

    public int getFatigueCost() {
        return fatigueCost;
    }

    public void setFatigueCost(int fatigueCost) {
        this.fatigueCost = fatigueCost;
    }

    public void setLoseCount(int loseCount) {
        this.loseCount = loseCount;
    }

    public void setPlayerList(List<Player> playerList) {
        this.playerList = playerList;
    }

    public List<Player> getPlayerList() {
        return playerList;
    }

    public void addPlayer(Player player) {
        playerList.add(player);
    }

    public void removePlayer(Player player) {
        playerList.remove(player);
    }
}